// @ts-ignore
/* eslint-disable */
import { request } from "@umijs/max";

/** addInterfaceInfo POST /api/userInterfaceInfo/add */
export async function addInterfaceInfoUsingPost1(
  body: API.UserInterfaceInfoAddRequest,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseLong_>("/api/userInterfaceInfo/add", {
    method: "POST",
    headers: {
      "Content-Type": "application/json",
    },
    data: body,
    ...(options || {}),
  });
}

/** deleteInterfaceInfo POST /api/userInterfaceInfo/delete */
export async function deleteInterfaceInfoUsingPost1(
  body: API.DeleteRequest,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseBoolean_>("/api/userInterfaceInfo/delete", {
    method: "POST",
    headers: {
      "Content-Type": "application/json",
    },
    data: body,
    ...(options || {}),
  });
}

/** getInterfaceInfoVOById GET /api/userInterfaceInfo/get */
export async function getInterfaceInfoVoByIdUsingGet1(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.getInterfaceInfoVOByIdUsingGET1Params,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseUserInterfaceInfo_>(
    "/api/userInterfaceInfo/get",
    {
      method: "GET",
      params: {
        ...params,
      },
      ...(options || {}),
    }
  );
}

/** listInterfaceInfoByPage POST /api/userInterfaceInfo/list/page */
export async function listInterfaceInfoByPageUsingPost1(
  body: API.UserInterfaceInfoQueryRequest,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponsePageUserInterfaceInfo_>(
    "/api/userInterfaceInfo/list/page",
    {
      method: "POST",
      headers: {
        "Content-Type": "application/json",
      },
      data: body,
      ...(options || {}),
    }
  );
}

/** updateInterfaceInfo POST /api/userInterfaceInfo/update */
export async function updateInterfaceInfoUsingPost1(
  body: API.UserInterfaceInfoUpdateRequest,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseBoolean_>("/api/userInterfaceInfo/update", {
    method: "POST",
    headers: {
      "Content-Type": "application/json",
    },
    data: body,
    ...(options || {}),
  });
}
